package interpreter;

import lombok.AllArgsConstructor;

import java.util.HashMap;

/**
 * 抽象运算符解释器，每个符号都只和自己左右两个数字有关系
 */
@AllArgsConstructor
public class SymbolExpression implements Expression {

    protected Expression left;
    protected Expression right;

    //空实现，让其子类来实现
    @Override
    public int interpreter(HashMap<String, Integer> var) {
        // 默认实现
        throw new RuntimeException();
    }
}
